<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>统一认证中心</title>

    <#import "../common/common.macro.ftl" as netCommon>
    <@netCommon.commonStyle />

</head>
<body class="hold-transition login-page">

<div class="login-box">
    <form id="registerForm" >
        <div class="login-box-body">
            <p class="login-box-msg">新用户注册</p>
            <div id="usernamediv" class="form-group">
                <label>用户名</label>
                <input id="username" type="text" class="form-control" name="username">
                <span id="usernameMsg" class="help-block"></span>
            </div>
            <div id="namediv" class="form-group">
                <label>姓名</label>
                <input id="name" type="text" class="form-control" name="name">
                <span id="nameMsg" class="help-block"></span>
            </div>
            <div id="phonediv" class="form-group">
                <label>手机号</label>
                <input id="phone" type="text" class="form-control" name="phone">
                <span id="phoneMsg" class="help-block"></span>
            </div>
            <div id="maildiv" class="form-group">
                <label>邮箱</label>
                <input id="mail" type="email" class="form-control" name="mail">
                <span id="mailMsg" class="help-block"></span>
            </div>
            <div id="departmentdiv" class="form-group">
                <label>部门</label>
                <select id="depId" name="depId" class="form-control select2" data-placeholder="Select a State" style="width: 100%;" onchange="changeDepName()">
                    <option  value="-1"></option>
                    <#list deps as item>
                        <option  value="${item.id}">${item.depName}</option>
                    </#list>
                </select>
                <input id="depName" type="hidden" class="form-control" name="depName">
            </div>
            <div id="remarkdiv" class="form-group">
                <label>备注</label>
                <input id="remark" type="text" class="form-control" name="remark">
            </div>
            <div class="row">
                <div class="col-xs-4">
                    <button onclick="addUser()" type="button" class="btn btn-primary btn-block btn-flat">提交</button>
                </div>
            </div>
        </div>
    </form>
</div>

</body>
<@netCommon.commonScript />
<script src="${request.contextPath}/static/js/user.js"></script>
</html>